package com.hhsjtest.segiui

import androidx.multidex.MultiDexApplication
import com.hhsjdesign.dynamicui.core.DynamicUI
import com.hhsjdesign.dynamicui.utils.DynamicUIConfig
import com.hhsjdesign.dynamicui.core.widgetdata.WidgetData
import com.hhsjdesign.dynamicui.core.widgetdata.WidgetTypeConst
import com.hhsjdesign.dynamicui.reddot.RedDotFrameLayout

class App : MultiDexApplication() {

    override fun onCreate() {
        super.onCreate()
        RedDotFrameLayout.debug(false)
        DynamicUI.inject()
//        DynamicUI.inject(object : DynamicUIConfig {
//            override fun widgetViewTypeList(): MutableMap<String, String> {
//                return HashMap<String, String>().apply {
//                    this[WidgetTypeConst.BANNER_GRID] =
//                        "com.hhsjdesign.dynamicui.core.widgetimpl.businesswidget.BannerGWidget"
//                    this[WidgetTypeConst.BANNER_SINGLE] =
//                        "com.hhsjdesign.dynamicui.core.widgetimpl.businesswidget.BannerSWidget"
//                    this[WidgetTypeConst.GRID_VERTICAL] =
//                        "com.hhsjdesign.dynamicui.core.widgetimpl.businesswidget.GridVWidget"
//                    this[WidgetTypeConst.GRID_HORIZONTAL] =
//                        "com.hhsjdesign.dynamicui.core.widgetimpl.businesswidget.GridHWidget"
//
//                    this[WidgetTypeConst.LAYOUT_FRAME] =
//                        "com.hhsjdesign.dynamicui.core.widgetimpl.layout.FrameLayoutWidget"
//                    this[WidgetTypeConst.LAYOUT_LINEAR_VERTICAL] =
//                        "com.hhsjdesign.dynamicui.core.widgetimpl.layout.LinearLayoutVWidget"
//                    this[WidgetTypeConst.LAYOUT_LINEAR_HORIZONTAL] =
//                        "com.hhsjdesign.dynamicui.core.widgetimpl.layout.LinearLayoutHWidget"
//                    this[WidgetTypeConst.LAYOUT_RELATIVE] =
//                        "com.hhsjdesign.dynamicui.core.widgetimpl.layout.RelativeLayoutWidget"
//                    this[WidgetTypeConst.LAYOUT_IMAGE] =
//                        "com.hhsjdesign.dynamicui.core.widgetimpl.layout.ImageWidget"
//                    this[WidgetTypeConst.LAYOUT_TEXT] =
//                        "com.hhsjdesign.dynamicui.core.widgetimpl.layout.TextWidget"
//                    this[WidgetTypeConst.LAYOUT_PLACEHOLDER] =
//                        "com.hhsjdesign.dynamicui.core.widgetimpl.layout.PlaceHolderWidget"
//                }
//            }
//
//            override fun widgetDataTypeList(): MutableMap<String, String> {
//
//
//                return HashMap<String, String>().apply {
//
//                    this[WidgetTypeConst.LAYOUT_FRAME] =
//                        "com.hhsjdesign.dynamicui.core.widgetdata.FrameLayoutWidgetData"
//                    this[WidgetTypeConst.LAYOUT_LINEAR_VERTICAL] =
//                        "com.hhsjdesign.dynamicui.core.widgetdata.LinearLayoutVWidgetData"
//                    this[WidgetTypeConst.LAYOUT_LINEAR_HORIZONTAL] =
//                        "com.hhsjdesign.dynamicui.core.widgetdata.LinearLayoutHWidgetData"
//                    this[WidgetTypeConst.LAYOUT_RELATIVE] =
//                        "com.hhsjdesign.dynamicui.core.widgetdata.RelativeLayoutWidgetData"
//
//
//                    this[WidgetTypeConst.BANNER_SINGLE] =
//                        "com.hhsjdesign.dynamicui.core.widgetdata.BannerSWidgetData"
//                    this[WidgetTypeConst.BANNER_GRID] =
//                        "com.hhsjdesign.dynamicui.core.widgetdata.BannerGWidgetData"
//                    this[WidgetTypeConst.GRID_VERTICAL] =
//                        "com.hhsjdesign.dynamicui.core.widgetdata.GridVWidgetData"
//                    this[WidgetTypeConst.GRID_HORIZONTAL] =
//                        "com.hhsjdesign.dynamicui.core.widgetdata.GridHWidgetData"
//
//                }
//            }
//
//            override fun widgetPropertyTypeList(): MutableMap<String, String> {
//                return HashMap<String, String>().apply {
//                    this[WidgetTypeConst.BANNER_GRID] =
//                        "com.hhsjdesign.dynamicui.core.property.widget.BannerGWidgetProperty"
//                    this[WidgetTypeConst.BANNER_SINGLE] =
//                        "com.hhsjdesign.dynamicui.core.property.widget.BannerSWidgetProperty"
//                    this[WidgetTypeConst.GRID_VERTICAL] =
//                        "com.hhsjdesign.dynamicui.core.property.widget.GridVWidgetProperty"
//                    this[WidgetTypeConst.GRID_HORIZONTAL] =
//                        "com.hhsjdesign.dynamicui.core.property.widget.GridHWidgetProperty"
//
//                    this[WidgetTypeConst.LAYOUT_FRAME] =
//                        "com.hhsjdesign.dynamicui.core.property.widget.FrameLayoutProperty"
//                    this[WidgetTypeConst.LAYOUT_LINEAR_VERTICAL] =
//                        "com.hhsjdesign.dynamicui.core.property.widget.LinearLayoutVProperty"
//                    this[WidgetTypeConst.LAYOUT_LINEAR_HORIZONTAL] =
//                        "com.hhsjdesign.dynamicui.core.property.widget.LinearLayoutHProperty"
//                    this[WidgetTypeConst.LAYOUT_RELATIVE] =
//                        "com.hhsjdesign.dynamicui.core.property.widget.RelativeLayoutProperty"
//                    this[WidgetTypeConst.LAYOUT_IMAGE] =
//                        "com.hhsjdesign.dynamicui.core.property.widget.ImageWidgetProperty"
//                    this[WidgetTypeConst.LAYOUT_TEXT] =
//                        "com.hhsjdesign.dynamicui.core.property.widget.TextWidgetProperty"
//                    this[WidgetTypeConst.LAYOUT_PLACEHOLDER] =
//                        "com.hhsjdesign.dynamicui.core.property.widget.PlaceHolderWidgetProperty"
//                }
//            }
//
//            override fun widgetItemViewTypeList(): MutableMap<String, String> {
//                return HashMap<String, String>().apply {
//                    this["enter"] = "com.hhsjtest.bus_enter.businessdata.Enter"
//                    this["advert"] = "com.hhsjtest.bus_advert.businessdata.Advert"
//                }
//            }
//
//            override fun businessBeanTypeList(): MutableMap<String, String> {
//                return HashMap<String, String>().apply {
//                    this["enter"] = "com.hhsjtest.bus_enter.businessdata.Enter"
//                    this["advert"] = "com.hhsjtest.bus_advert.businessdata.Advert"
//                }
//            }
//
//            override fun viewHolderTypeList(): MutableMap<String, String> {
//                return HashMap<String, String>().apply {
//                    this["enter"] = "com.hhsjtest.bus_enter.viewholder.EnterViewHolder"
//                    this["advert"] = "com.hhsjtest.bus_advert.viewholder.AdvertViewHolder"
//                }
//            }
//
//            override fun dataCallerTypeList(): MutableMap<String, String> {
//                return HashMap<String, String>().apply {
//                    this["enter"] = "com.hhsjtest.bus_enter.caller.EnterDataCaller"
//                    this["advert"] = "com.hhsjtest.bus_advert.caller.AdvertDataCaller"
//                }
//            }
//
//        })
    }
}